package cn.com.eth.yx.ethpro.service;


import org.web3j.protocol.Web3j;

public interface EthService {
    /**
     * 转账到合约地址
     *
     * @param from
     * @param to
     * @param value
     * @param gasPrice
     * @param gasLimit
     */
    public String tranferToContractAddr(Web3j web3j, String from, String to, String value, String gasPrice, String gasLimit, String walletPwd) throws Exception;

    /**
     * eth转账
     *
     * @param web3j
     * @param from
     * @param to
     * @param value
     * @param gasPrice
     * @param gasLimit
     * @param walletPwd
     * @return 转账的Hash值
     */
    public String tranferEth(Web3j web3j, String from, String to, String value, String gasPrice, String gasLimit, String walletPwd) throws Exception;
}
